package com.hjm.project.posActivationCard.posActivationCard.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.posActivationCard.posActivationCard.mapper.PosActivationCardMapper;
import com.hjm.project.posActivationCard.posActivationCard.domain.PosActivationCard;
import com.hjm.project.posActivationCard.posActivationCard.service.IPosActivationCardService;
import com.hjm.common.utils.text.Convert;

/**
 * 达标黑名单Service业务层处理
 * 
 * @author LOVE
 * @date 2020-11-28
 */
@Service
public class PosActivationCardServiceImpl implements IPosActivationCardService 
{
    @Autowired
    private PosActivationCardMapper posActivationCardMapper;

    /**
     * 查询达标黑名单
     * 
     * @param pan 达标黑名单ID
     * @return 达标黑名单
     */
    @Override
    public PosActivationCard selectPosActivationCardById(String pan)
    {
        return posActivationCardMapper.selectPosActivationCardById(pan);
    }

    /**
     * 查询达标黑名单列表
     * 
     * @param posActivationCard 达标黑名单
     * @return 达标黑名单
     */
    @Override
    public List<PosActivationCard> selectPosActivationCardList(PosActivationCard posActivationCard)
    {
        return posActivationCardMapper.selectPosActivationCardList(posActivationCard);
    }

    /**
     * 新增达标黑名单
     * 
     * @param posActivationCard 达标黑名单
     * @return 结果
     */
    @Override
    public int insertPosActivationCard(PosActivationCard posActivationCard)
    {
        return posActivationCardMapper.insertPosActivationCard(posActivationCard);
    }

    /**
     * 修改达标黑名单
     * 
     * @param posActivationCard 达标黑名单
     * @return 结果
     */
    @Override
    public int updatePosActivationCard(PosActivationCard posActivationCard)
    {
        return posActivationCardMapper.updatePosActivationCard(posActivationCard);
    }

    /**
     * 删除达标黑名单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePosActivationCardByIds(String ids)
    {
        return posActivationCardMapper.deletePosActivationCardByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除达标黑名单信息
     * 
     * @param pan 达标黑名单ID
     * @return 结果
     */
    @Override
    public int deletePosActivationCardById(String pan)
    {
        return posActivationCardMapper.deletePosActivationCardById(pan);
    }
}
